package edu.ynmd.cms.Dao;

import edu.ynmd.cms.model.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface TeacherDao extends JpaRepository<Teacher,String> {
@Query("select t from Teacher t where t.id =:teacherid")
public List<Teacher> getCourseListByBook(@Param("teacherid") String book);
        }
